package cn.mesmile.excel.service.impl;

import cn.mesmile.excel.entity.User;
import cn.mesmile.excel.mapper.UserMapper;
import cn.mesmile.excel.service.UserService;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import lombok.AllArgsConstructor;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

/**
 * @author zb
 * @date 2020/3/11 00:05
 * @Description:
 */
@AllArgsConstructor
@Transactional(rollbackFor = Exception.class, propagation = Propagation.SUPPORTS, readOnly = true)
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService {

    private final UserMapper userMapper;

    @Override
    public Page<User> selectUserPage(Page<User> page, Integer number) {
        return userMapper.selectGroupName(page, number);
    }



}
